package org.jeecg.modules.teacher_course.service.impl;

import org.jeecg.modules.teacher.entity.AstuTeacher;
import org.jeecg.modules.teacher_course.entity.AstuTeacherCourse;
import org.jeecg.modules.teacher_course.mapper.AstuTeacherCourseMapper;
import org.jeecg.modules.teacher_course.service.IAstuTeacherCourseService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description: 教师和课程表
 * @Author: jeecg-boot
 * @Date:   2021-10-09
 * @Version: V1.0
 */
@Service
public class AstuTeacherCourseServiceImpl extends ServiceImpl<AstuTeacherCourseMapper, AstuTeacherCourse> implements IAstuTeacherCourseService {

    @Resource
    private AstuTeacherCourseMapper astuTeacherCourseMapper;

    @Override
    public AstuTeacherCourse selectTeacherNumberByCourseName(String courseName) {
        return astuTeacherCourseMapper.selectTeacherNumberByCourseName(courseName);
    }

    @Override
    public AstuTeacher selectTeacherByTeacherNumber(String teacherNumber) {
        return astuTeacherCourseMapper.selectTeacherByTeacherNumber(teacherNumber);
    }


    public List<AstuTeacherCourse> selectAll() {
        return astuTeacherCourseMapper.selectList(null);
    }

    @Override
    public List<Object> selectEIdAndEName() {
        return astuTeacherCourseMapper.selectEIdAndEName();
    }


}
